package model

type Chatdata struct {
	Name     string `json:"name" redis:"name"`
	Email    string `json:"email" redis:"email"`
	Avatar   string `json:"avatar" redis:"avatar"`
	Sendtime int    `json:"sendtime" redis:"sendtime"`
	Context  string `json:"context" redis:"context"`
}

//接受信息的结构体
type Chathandle struct {
	Auth string `json:"auth" redis:"auth"`
	Type string `json:"type" redis:"type"` //"close"   "normal"
	Chatdata
}

//发送信息的结构体
type Sendhandle struct {
	Type    string `json:"type" redis:"type"` // "normal"  "error"  "uptoken"
	Context string `json:"context" redis:"context"`
}
